package org.loneranger.p2_bean_post_processor.bean;

import org.loneranger.p2_bean_post_processor.annotation.BeanName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserService {

	/**
	 * 依赖注入（在bean的生命周期中属于填充属性）
	 */
	@Autowired
	private OrderService orderService;


	@BeanName("gogobaebae")
	private String userName;

	public void sayMyName() {
		System.out.println(this.userName);
	}

}
